package com.example.demo.mapper;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserInfoMapper {
//    注册用户
    public int addUser(User user);
//    修改密码
    public int updateByUsername(String username,String newPassword);
//    注销密码
    public int deleteUser(String username,String password);
//    查找用户
    public User selectByName(String username);

    public User selectById(Integer id);

}
